﻿@{
    ViewBag.Title = "上传头像";
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>基于amazeui框架头像上传代码</title>
    <link href="~/Resources/mainFrame/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet" />
    <link href="~/Resources/tools/amazeui/css/amazeui.min.css" rel="stylesheet" />
    <link href="~/Resources/tools/amazeui/css/amazeui.cropper.css" rel="stylesheet" />
    <link href="~/Resources/tools/amazeui/css/custom_up_img.css" rel="stylesheet" />
    <style type="text/css">
        .up-img-cover {
            width: 100px;
            height: 100px;
        }
        .up-img-cover img {
            width: 100%;
        }
    </style>
</head>
<body>
    <!--图片上传框-->
    <div class="am-modal am-modal-no-btn up-frame-bj " tabindex="-1" id="doc-modal-1">
        <div class="am-modal-dialog up-frame-parent up-frame-radius">
            <div class="am-modal-hd up-frame-header">
                <label>修改头像</label>
                @*<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>*@
            </div>
            <div class="am-modal-bd  up-frame-body">
                <div class="am-g am-fl">
                    <div class="am-form-group am-form-file">
                        <div class="am-fl">
                            <button type="button" class="am-btn am-btn-default am-btn-sm">
                                <i class="am-icon-cloud-upload"></i> 选择要上传的文件
                            </button>
                        </div>
                        <input type="file" id="inputImage">
                    </div>
                </div>
                <div class="am-g am-fl">
                    <div class="up-pre-before up-frame-radius">
                        <img alt="" src="" id="image">
                    </div>
                    <div class="up-pre-after up-frame-radius">
                    </div>
                </div>
                <div class="am-g am-fl">
                    <div class="up-control-btns">
                        <span class="am-icon-rotate-left" onclick="rotateimgleft()"></span>
                        <span class="am-icon-rotate-right" onclick="rotateimgright()"></span>
                        <span class="am-icon-check" id="up-btn-ok" picType="header" url="/Main/UploadPicBase"></span>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <!--加载框-->
    <div class="am-modal am-modal-loading am-modal-no-btn" tabindex="-1" id="my-modal-loading">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">正在上传...</div>
            <div class="am-modal-bd">
                <span class="am-icon-spinner am-icon-spin"></span>
            </div>
        </div>
    </div>
    <!--警告框-->
    <div class="am-modal am-modal-alert" tabindex="-1" id="my-alert">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">信息</div>
            <div class="am-modal-bd" id="alert_content">
                成功了
            </div>
            <div class="am-modal-footer">
                <span class="am-modal-btn">确定</span>
            </div>
        </div>
    </div>
    <script src="~/Resources/mainFrame/js/jquery.min.js?v=2.1.4"></script>
    <script src="~/Resources/tools/amazeui/js/amazeui.min.js"></script>
    <script src="~/Resources/tools/amazeui/js/cropper.min.js"></script>
    <script src="~/Resources/tools/jquery-hcq2-extend.js"></script>
    <script src="~/Resources/tools/amazeui/js/custom_up_img.js"></script>
</body>
</html>